/**
 * 地址管理路由
 */

const addAddress = () => import('../add-address/add-Address.vue');
const editAddress = () => import('../edit-address/edit-address.vue');
const addressList = () => import('../address-list/address-list.vue');

export default [
    {
        path: 'list',
        name: 'my-address',
        component: addressList,
        meta: {
            title: '我的地址'
        },
        children: [
            {
                path: 'add',
                name: 'newAddress',
                component: addAddress,
                meta: {
                    title: '新增地址'
                }
            },
            {
                path: 'edit',
                name: 'editAddress',
                component: editAddress,
                meta: {
                    title: '编辑地址'
                }
            }
        ]
    }
];
